package offer;
//跳台阶
public class T8 {
    public int JumpFloor(int target) {
        int t = 0;
        int num = 1;
        for(int i = 1 ; i <=target;i++) {
            int tt =t;
            t=num;
            num+=tt;
        }
        return num;

    }
    public static void main ( String[] args) {
        System.out.println(new T8().JumpFloor(3));

    }
}
